package com.tedu.egweiboall.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class JsonResult {
    private Integer statusCode;
    private String message;
    private Object data;

    public JsonResult(Status status,Object data){
        this.statusCode=status.getStatusCode();
        this.message=status.getMessage();
        this.data=data;
    }

    public JsonResult(Status status){
        this.statusCode=status.getStatusCode();
        this.message=status.getMessage();
    }
}
